import 'package:dependencies_examples/retrofit/example.dart';
import 'package:dio/dio.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:logger/logger.dart';

final logger = Logger();
final dio = Dio(); // Provide a dio instance
final client = RestClient(dio);

void main() {
  group('tasks', () {
    test('get tasks', () async {
      final tasks = await client.getTasks();
      expect(tasks.length, 3);
    });
    test('get task', () async {
      final task = await client.getTask("1");
      print(task);
    });
    test('profiles', () async {
      final profiles = await client.getUsers();
      expect(profiles.length, 3);
    });
  });
}
